package sg.edu.nus.iss.vmcs.interfaces;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class VMCSCommandAWTAdapter implements ActionListener {
	
	private Command vmcsCommand;
	
	public VMCSCommandAWTAdapter(Command vmcsCommand) {
		this.vmcsCommand = vmcsCommand;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		System.out.println("I am AWT Adapter calling Command Interface");
		vmcsCommand.execute(e.getActionCommand());
	}
	
}